import {defHttp} from '/@/utils/http/axios';

enum Api {
  list = "/pay-service/payMgt/refund/pageRefund",
  refundOrder = "/pay-service/payMgt/refund/refundOrder",
  exportXls = "/system-service/config/exportXls",
  importExcel = "/system-service/config/importExcel",
}

/**
 * 导出url
 */
export const getExportUrl = Api.exportXls;
/**
 * 导入url
 */
export const getImportUrl = Api.importExcel;

/**
 * 查询列表
 * @param params
 */
export const getList = (params) => {
  return defHttp.get({url: Api.list, params});
}

export const refundOrder = (params) => {
  return defHttp.post({url: Api.refundOrder, params});
}


